home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / amitcp / amitcp-src-22.lha / AmiTCP-2.2 / src / appl / napsaterm / national.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-07  |  982 b   |  39 lines

  1. /*
  2.  * national.h --- special national fonts and keymappings
  3.  *
  4.  * Author: ppessi <Pekka.Pessi@hut.fi>
  5.  *
  6.  * Copyright (c) 1993 Pekka Pessi
  7.  *
  8.  * Created      : Mon Mar 29 06:38:37 1993 ppessi
  9.  * Last modified: Wed Mar 31 12:34:11 1993 ppessi
  10.  *
  11.  */
  12.  
  13. #define MAX_NATIONS 31
  14. #define CHARSETSIZE 256
  15.  
  16. /* national_kmap provides mapping from 
  17.  * the keyboard codes to the national character codes
  18.  */
  19. extern unsigned char national_table[CHARSETSIZE];
  20. /* national_kmap provides mapping from 
  21.  * the keyboard codes to the national character codes
  22.  */
  23. extern unsigned char national_kmap[CHARSETSIZE];
  24.  
  25. struct nation {
  26.   char *n_name;
  27.   char *n_kmapname;    /* name of the kmap resource */
  28.   void *n_kmap;        /* pointer to the kmap resource */
  29.   char *n_patches;    /* mapping between Latin1 and national code */
  30. };
  31.  
  32. extern struct nation nations[MAX_NATIONS];
  33. extern struct nation *used_nation;
  34. extern struct KeyMap *myKeyMap;
  35.  
  36. void init_national(unsigned int n);
  37. void getnationbyname(char *name);
  38.  
  39.